package com.test.market.service.impl;

import com.test.market.dao.SupplierDAO;
import com.test.market.pojo.Supplier;
import com.test.market.service.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 徒有琴
 */
@Service
public class SupplierServiceImpl implements SupplierService {

    @Autowired
    private SupplierDAO supplierDAO;

    @Override
    public List<Supplier> getSupplierList(String name) {
        return supplierDAO.getSupplierList(name);
    }
}
